<template>
    <div class="home">
        <Swiper :data="imgs"/>
        <h1 style="textAlign:center;margin:1em 0">产品介绍</h1>
        <div>
            <img 
                v-for="(item,index) in items" 
                :key="index" 
                :src="item.src" 
                alt=""
                @click="$router.replace(item.router)"
            >
        </div>
    </div>
</template>
<script>
import Swiper from '../components/swiper.vue'
export default{
    components:{Swiper},
    data(){
        return{
            items:[
                {router:'/iphone',src:'https://img14.360buyimg.com/cms/jfs/t1/191289/16/8155/93150/60c7f066Ef0deba36/607e44b298c22a4a.jpg'},
                {router:'/ipad',src:'https://img11.360buyimg.com/cms/jfs/t1/176460/30/10674/76618/60a6902aE4834cd70/b767a2ec2bdca8d3.jpg'},
                {router:'/mac',src:'https://img10.360buyimg.com/cms/jfs/t1/172877/22/10756/51261/60a69052E5ce6f746/b4c97e058bfd15b3.jpg'},
                {router:'/watch',src:'https://img14.360buyimg.com/cms/jfs/t1/131945/33/13197/77463/5f926022Ee964dda4/9df7a6153ac918b5.jpg'},
                {router:'',src:'https://img10.360buyimg.com/cms/jfs/t1/163241/40/20928/56536/608adef0Efb54615a/6ae1c5a380ba2c8a.jpg!q90'},
            ],
            imgs:[
                'https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2358908242,170249164&fm=26&gp=0.jpg',
                'https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3065608278,1478616087&fm=26&gp=0.jpg',
                'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=26816982,2489164740&fm=26&gp=0.jpg'
            ]
        }
        
    }
}
</script>
<style scoped>

</style>
